import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-01-14
 * Time: 9:35
 */
public class Test {
    public static void main(String[] args) {
        Game game = new Game();
        List<Poker> pokers = game.buyPoker();
        System.out.println(pokers);

        //洗牌:
        game.shuffle(pokers);
        //
        System.out.println("洗牌：");
        System.out.println(pokers);

        //揭牌：三个人，每个人轮流抓五张牌,那也就是for循环的嵌套
        //揭牌也就是牌都在pokers里面删完了，每次都去删除pokers这个list的0下标，因此每次都会出现一个新的0下标
        //然后把每次揭的牌依次放到三个人的手里,hand1、hand2、hand3
         List<List<Poker>> hand = game.game(pokers);
        System.out.println("揭牌：");
        for(int i = 0;i < hand.size();i++){
            System.out.println("第 "+(i+1)+"个人的牌 "+hand.get(i));
        }
        System.out.println("剩下的牌：");
        System.out.println(pokers);

    }
}
